package cn.cxq.learning.e5;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Client {

    public static void main(String[] args) {

        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));

        try {
            int num = Integer.parseInt(bufferedReader.readLine());

            for (int i = 0; i < num; i++) {
                String line = bufferedReader.readLine();
                String[] param = line.split(" ");

                new GoldenSection(Double.parseDouble(param[0]), Double.parseDouble(param[1])).slove();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
